#!/bin/python
#-*- coding:utf-8 -*-
# Filename:    syslog.py
# Revision:    1.0
# Date:        2013-07-26
# Author:      simonzhang
# web:         www.simonzhang.net
# Email:       simon-zzm@163.com
### END INIT INFO
import logging


logging.basicConfig(level = logging.INFO, 
                format = '%(asctime)s %(filename)s[line:%(lineno)d] %(levelname)s %(message)s', 
                datefmt = '%a, %d %b %Y %H:%M:%S', 
                filename = 'logs/deploy.log', 
                filemode = 'w')

def info_log(log_context):
    logging.info(log_context)

def debug_log(log_context):
    logging.debug(log_context)

def warn_log(log_context):
    logging.warning(log_context)
